//
//  GHY_CameraAuxiliaryLineView.m
//  Camera
//
//  Created by aaaaaa on 16/8/13.
//  Copyright © 2016年 葛海一. All rights reserved.
//

#import "GHY_CameraAuxiliaryLineView.h"
#import <QuartzCore/QuartzCore.h>

@implementation GHY_CameraAuxiliaryLineView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.alpha = 0.15;
        
        
    }
    return self;
}

- (void)drawRect:(CGRect)rect {
    
    CGContextRef context = UIGraphicsGetCurrentContext();

    CGContextSetStrokeColorWithColor(context, [UIColor lightGrayColor].CGColor);

    
    CGContextMoveToPoint(context, WIDTH_VIEW / 3, 0);
    CGContextAddLineToPoint(context, WIDTH_VIEW / 3, HEIGHT_VIEW);
    
    CGContextMoveToPoint(context, WIDTH_VIEW / 3 * 2, 0);
    CGContextAddLineToPoint(context, WIDTH_VIEW / 3 * 2, HEIGHT_VIEW);
    
    CGContextMoveToPoint(context, 0, HEIGHT_VIEW / 3);
    CGContextAddLineToPoint(context, WIDTH_VIEW, HEIGHT_VIEW / 3);
   
    CGContextMoveToPoint(context, 0, HEIGHT_VIEW / 3 * 2);
    CGContextAddLineToPoint(context, WIDTH_VIEW, HEIGHT_VIEW / 3 * 2);
    
    CGContextSetLineWidth(context, 1);
    CGContextStrokePath(context);
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}

@end
